<?php

namespace app\model;

use app\util\Tools;

class UserCashAccount extends Base
{
    protected $autoWriteTimestamp = true;
    protected $updateTime = 'updateTime';
    protected $createTime = 'addTime';

    public function setCashfeeAttr($value)
    {
        return $value * 100;
    }

    public function getCashfeeAttr($value)
    {
        return Tools::bcCalculate($value, 100, '/');
    }
}



?>